package com.ysq.www.api.front.mapper;

import com.ysq.www.api.front.entity.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 活动表 Mapper 接口
 * </p>
 *
 * @author dql
 * @since 2020-08-08
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    /**
     * 查询活动详情
     * @param apId 活动id
     * @return Activity
     */
    Activity selectDetailById(Integer apId);

    /**
     * 审批处理提交的活动
     * @param atId 活动id
     * @param result 处理结果：1通过，2驳回
     */
    void  checkActivityById(@Param("atId") Integer atId,@Param("result") Integer result);
}
